<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/vue.js"></script>
</head>
<body>
    <div id="root">
        <header>
        <button @click="show = 0">话费</button>
        <button @click="show = 1">机票</button>
        <button @click="show = 2">酒店</button>
    </header>
    <footer>
        <div v-show="show==0">话费内容</div>
        <div v-show="show==1">机票内容</div>
        <div v-show="show==2">酒店内容</div>
    </footer>
    </div>
</body>
</html>
<script>
   const vm = new Vue({
       el:'#root',
       data:{
           show:0,
       }
   })
</script>